import { post, get } from '@/utils/request'
import siteConfig from '@/config/site'
import { jsonToSearch } from '@/utils/tools'

// 添加权限节点
export const addNodeApi = (data: IAuthType.AuthForm) => {
  return post<number>('/api/auth/create', data)
}

// 获取权限节点列表
export const getNodeListApi = () => {
  return get<IAuthType.AuthList[]>('/api/auth/list')
}
